input = [1, 3, 5, 7, 9]


def the_sum(input):
    if len(input) == 1:
        return input[0]
    else:
        return input[0] + the_sum(input[1:])


print(the_sum(input))
